package com.wuseguang.springcloud.dao.repository;

import com.wuseguang.springcloud.entity.HaiweidaSynLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface HaiweidaSynLogRepository extends JpaRepository<HaiweidaSynLog,Integer> {

    @Query(value = "select * from haiweida_syn_log where uuid = ?1",nativeQuery = true)
    HaiweidaSynLog inserthaiweidaSynLog(String uuid);

    @Query(value = "select * from haiweida_syn_log where school_id = ?1",nativeQuery = true)
    List<HaiweidaSynLog> findBySchoolId(String schoolId);
}
